package com.hulk.ratel.persistence.entity

import java.util.Date
import com.baomidou.mybatisplus.annotations.TableId
import com.baomidou.mybatisplus.annotations.TableField

import com.baomidou.mybatisplus.enums.IdType
import com.baomidou.mybatisplus.activerecord.Model
import com.baomidou.mybatisplus.annotations.TableName
import java.io.Serializable

/**
 * <p>
 * 
 * </p>
 *
 * @author hulk
 * @since 2018-08-29
 */
@TableName("t_dict_info")
class TDictInfo : Model<TDictInfo>() {

    @TableId(value = "dict_id", type = IdType.ID_WORKER)
    var dictId: String? = null
    @TableField("dict_en")
    var dictEn: String? = null
    @TableField("dict_cn")
    var dictCn: String? = null
    /**
     * Y-启用
            N-停用
     */
    @TableField("dict_flag")
    var dictFlag: String? = null
    @TableField("dict_desc")
    var dictDesc: String? = null
    @TableField("input_by")
    var inputBy: String? = null
    @TableField("input_time")
    var inputTime: Date? = null
    @TableField("updated_by")
    var updatedBy: String? = null
    @TableField("updated_time")
    var updatedTime: Date? = null
    @TableField("tenant_id")
    var tenantId: String? = null
    @TableField("lock_version")
    var lockVersion: Long? = null
    var rsv1: String? = null


    override fun pkVal(): Serializable? {
        return dictId
    }

    override fun toString(): String {
        return "TDictInfo{" +
        ", dictId=" + dictId +
        ", dictEn=" + dictEn +
        ", dictCn=" + dictCn +
        ", dictFlag=" + dictFlag +
        ", dictDesc=" + dictDesc +
        ", inputBy=" + inputBy +
        ", inputTime=" + inputTime +
        ", updatedBy=" + updatedBy +
        ", updatedTime=" + updatedTime +
        ", tenantId=" + tenantId +
        ", lockVersion=" + lockVersion +
        ", rsv1=" + rsv1 +
        "}"
    }
}
